# import socket
# import time
 
# # 创建一个套接字
# s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 
# # 连接到服务器 (替换为实际的IP地址和端口)
# s.connect(('localhost', 25099))
# time.sleep(2)
# # 发送数据
# s.sendall(b'Hello, Server!')
# time.sleep(2)
# s.sendall(b'Hello, Server 222222222!')
 
# # 关闭套接字
# s.close()


import requests

data = {"num": 1}
header={"Cookie":"id=1"}
requests.post("http://localhost:25099/index", data=data, headers=header)